package zhjb.platform.module.blog.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 博客基本属性類
 * 
 * @author zhangjianbing@msn.com
 * 
 */
@Entity
@Table(name = "tb_blog_base")
public class BlogBase {
	private String id;// 主键
	private String author;// 作者
	private String title;// 标题
	private Date creattime;// 创建时间
	private Date updatetime;// 修改时间
	private int viewcount;// 前台浏览次数
	private int encryption;// 是否加密 1:加密 0：不加密
	private String encypwd;// 加密密码
	private int delstate;// 删除状态 1：删除 0:不删除
	private int publishstate;// 是否发布 0：否 1：是
	private Date publishtime;// 发布时间
	private int topblog;// 是否置顶 1：是 0：否

	@Id
	@Column(length = 32)
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getCreattime() {
		return creattime;
	}

	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public int getViewcount() {
		return viewcount;
	}

	public void setViewcount(int viewcount) {
		this.viewcount = viewcount;
	}

	public int getEncryption() {
		return encryption;
	}

	public void setEncryption(int encryption) {
		this.encryption = encryption;
	}

	public String getEncypwd() {
		return encypwd;
	}

	public void setEncypwd(String encypwd) {
		this.encypwd = encypwd;
	}

	public int getDelstate() {
		return delstate;
	}

	public void setDelstate(int delstate) {
		this.delstate = delstate;
	}

	public int getPublishstate() {
		return publishstate;
	}

	public void setPublishstate(int publishstate) {
		this.publishstate = publishstate;
	}

	public Date getPublishtime() {
		return publishtime;
	}

	public void setPublishtime(Date publishtime) {
		this.publishtime = publishtime;
	}

	public int getTopblog() {
		return topblog;
	}

	public void setTopblog(int topblog) {
		this.topblog = topblog;
	}

}
